﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>05-XHtmlTest</title>
    <link href="../dist/css/bootstrap.css" rel="stylesheet" />
</head>
<body>
    <div id="container" style="width:500px;height:300px;"></div>
    <script src="../dist/js/jquery.js"></script>
    <script src="../dist/js/popper.js"></script>
    <script src="../dist/js/bootstrap.js"></script>
    <script src="../dist/js/bootstrap-es6.js"></script>
    <script>
        var html = X.create({
            xtype: 'html',
            container: document.getElementById('container'),
            html: '<div style="width:300px; height:100%; background-color: #ccc; color: red;">Hello,world!</div>'
        });
        html.render();
    </script>
</body>
</html>